home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 2387 < prev    next >
Encoding:
Text File  |  1996-08-06  |  1.1 KB  |  27 lines

  1. Newsgroups: comp.lang.c++,comp.protocols.tcp-ip
  2. Path: news.ka.inka.de!not-for-mail
  3. From: olaf@inka.de (Olaf Titz)
  4. Subject: Re: Socket classes and fork()
  5. Date: 17 Jan 1996 15:10:07 GMT
  6. Keywords: sockets, C++, fork
  7. References: <1996Jan15.192235.21245@etnibsd.uucp>
  8. NNTP-Posting-Host: tapac.inka.de
  9. Message-ID: <dlbzgv.fkn@inka.de>
  10. Organization: INKA e.V., Karlsruhe
  11.  
  12. Sandeep Pathak <sandeep%etnibsd@uunet.uu.net> wrote:
  13. > My Socket class also has a reference count similar to that maintained 
  14. > by the kernel for a socket descriptor. But how do I maintain this count
  15. > if a fork() is done? I can not think of anyway of maintaining 
  16. > consistency w/ the kernel count unless there is some parent <-> child 
  17. > IPC for the Socket object. Anybody want to share some experiences?..
  18.  
  19. Encapsulate every fork() you use in a routine that does this housekeeping.
  20.  
  21. olaf
  22. -- 
  23. ___        Olaf.Titz@inka.de or @{stud,informatik}.uni-karlsruhe.de       ____
  24. __ o           <URL:http://www.inka.de/~bigred/>     <IRC:praetorius>
  25. __/<_              >> Just as long as the wheels keep on turning round
  26. _)>(_)______________ I will live for the groove 'til the sun goes down << ____
  27.